package com.love.rongcommon.base.converter;

import cn.hutool.core.bean.BeanUtil;

/**
 * 转化类
 */
public interface Convert {

    default <T> T convert(Class<T> targetClazz) {
        return BeanUtil.copyProperties(this, targetClazz);
    }

    default <D> void convert(D destinationObject) {
        BeanUtil.copyProperties(this, destinationObject);
    }

}